package cn.edu.scau.cmi.ema.service;

import java.util.List;
import java.util.Set;
import java.io.IOException;
import com.alibaba.fastjson.JSONObject;
import java.util.Map;
import org.springframework.web.bind.annotation.RequestParam;
import cn.edu.scau.cmi.ema.domain.*;
import cn.edu.scau.cmi.ema.domain.base.CmiPagination;


public interface QuantitytypeService {

	public Quantitytype saveQuantitytype(Quantitytype quantitytype);

	public Set<Quantitytype> loadQuantitytypes();

	public Set<Quantitytype> loadReferenceQuantitytypes(Set<Quantitytype> quantitytypes);

	public Set<Quantitytype> loadQuantitytypesByIdSet(Set<Integer> quantitytypesId);

	public Map<String, ?> loadQuantitytypeObjectReferencedSet(Quantitytype quantitytype);

	public Map<String, ?> loadQuantitytypeClassReferencedSet(Quantitytype quantitytype);

	public void deleteQuantitytype(Quantitytype quantitytype);

	public void deleteQuantitytypes(Set<Integer> deleteQuantitytypesId);

	public List<Quantitytype> findAllQuantitytypes(Integer startResult, Integer maxRows);

	public Quantitytype findQuantitytypeByPrimaryKey(Integer id);

	public Integer countQuantitytypes();

	public Integer countQuantitytypes(CmiPagination page);

	public Integer countQuantitytypesByName(String queryName);

	public Integer countQuantitytypesByDetachedCriteria(CmiPagination page);

}
